#ifndef UDPSCANNER_H
#define UDPSCANNER_H

#include <QString>
#include<winsock2.h>
#include "Delegate.h"

DECLARE_MULTICAST_DELEGATE(OnUDPResultSignature, QVector<QString>);

class UDPScanner
{
public:
    UDPScanner();

    void UDP_Scan(const char* DestIP, unsigned short StartPort, unsigned short EndPort);

    OnUDPResultSignature OnResult;

private:
    void Init();

    SOCKET sock;
};

#endif // UDPSCANNER_H
